<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include::header('通用审核页面')"/>
</head>
<body class="febs-container">
<div class="febs-body layui-fluid" lay-title="通用审核页面" id="febs-currency">
    <div class="febs-body-search">
        <form class="layui-form layui-table-form" lay-filter="currency-table-form"  id="currency-table-form" th:if="${pageType == '1'}">
            <div class="layui-card">
                <div class="layui-card-body">
                    <div class="layui-form-item">
                        <div class="layui-inline" th:classappend="${hasHeadCompanyRole } ? '' : 'febs-hide'">
                            <label class="layui-form-label layui-form-label-sm">公司名称</label>
                            <div class="layui-input-inline" >
                                <select name="tenantId" id="tenantId" lay-search="" >
                                    <option th:each="item:${tenantList }"
                                            th:value="${item.tenantId}" th:text="${item.tenantName}"
                                            th:selected="${tenantId ==item.tenantId}">
                                </select>
                            </div>
                        </div>
                        <div class="layui-inline">
                            <label class="layui-form-label layui-form-label-sm">项目名称</label>
                            <div class="layui-input-inline" style="width:190px;">
                                <input type="text" name="projectName" autocomplete="off" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-inline">
                            <label class="layui-form-label layui-form-label-sm" style="width: 85px">违章人员姓名</label>
                            <div class="layui-input-inline" style="width:190px;">
                                <input type="text" name="peccancyRealName" autocomplete="off" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-inline">
                            <div id="query" class="layui-btn">
                                <em class="layui-icon">&#xe615;</em> 查询
                            </div>
                        </div>

                    </div>
                </div>
            </div>
        </form>
    </div>
    <div class="febs-table-full">
        <table lay-filter="currencyTable" id="currencyTable" lay-data="{id: 'currencyTable'}"></table>
    </div>
</div>
<th:block th:include="include::foot"/>
<script type="text/html" id="currency-tool">
    <button type="button" class="layui-btn layui-btn-xs  layui-btn-primary layui-border-orange" lay-event="check"><i
            class="layui-icon febs-edit-area ">&#xe7f1;审核</i></button>
</script>
<script th:inline="javascript">
    var pageType = [[${pageType}]]
    var tenantList = [[${tenantList }]];
    var hasHeadCompanyRole = [[${hasHeadCompanyRole}]];
    var peccancyRootCauseList = [[${peccancyRootCauseList}]]
    var peccancyTypeList = [[${peccancyTypeList}]]
</script>
<script th:src="@{/febs/js/workflow/workflowApply/workflowApplyList.js(v=1)}"></script>
</body>
</html>